package com.blb.community_admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.blb.community_admin.entity.SysMenu;
import com.blb.community_admin.entity.SysUser;

import java.util.List;

public interface ISysUserService extends IService<SysUser> {
    List<SysMenu> getMenusByUsername(String username);

    //显示全部
    IPage<SysUser> getAllUser(Page<SysUser> sysUserPage, SysUser sysUser);

    //修改用户状态
    void updateStatus(SysUser sysUser);

    //查询用户
    SysUser getByName(String userName);

    //修改用户部分数据
    void updateUserById(SysUser sysUser);

    /**
     * 修改用户密码
     * @param userId
     * @param newpassword
     */
    void updatePwdById(long userId,String newpassword);

    //重置密码
    void updatePassword(SysUser sysUser);
}
